package com.lc.luzhengtang.conn;

import android.util.Log;

import com.google.gson.Gson;
import com.zcx.helper.http.AsyCallBack;
import com.zcx.helper.http.note.HttpInlet;

import org.json.JSONObject;

/**
 * Created by Administrator on 2017/4/17.
 */
@HttpInlet(Conn.GOODS_ITEM)
public class ConnGoodsCommodity extends BaseAsyPost<ConnCommodity> {

    public String goodstype_id,member_id;
    public int page, type;

    public ConnGoodsCommodity(String goodstype_id, int page, int type,String member_id, AsyCallBack<ConnCommodity> asyCallBack) {
        super(asyCallBack);
        this.goodstype_id = goodstype_id;
        this.page = page;
        this.type = type;
        this.member_id=member_id;
    }

    @Override
    protected ConnCommodity parser(JSONObject object) throws Exception {
        Log.d(object.toString(), "aaaaaaaaaaaaaaaaa");

        TOAST = object.optString("message");

        Gson gson = new Gson();
        ConnCommodity loginBean = new ConnCommodity();
        loginBean = gson.fromJson(object.toString(), ConnCommodity.class);

        return loginBean;

    }
}



